﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/AdminMaster.Master" Inherits="System.Web.Mvc.ViewPage<VietThuongLMS.ViewModels.LopHocDetailViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<% if (Model != null && Model.LopHocViewModel != null && Model.PhanCongViewModel != null && Model.HocVienList != null)
   { %>    
    <legend>
        Lớp <%: Model.LopHocViewModel.TenLopHoc%>
    </legend>

    <div class="widget orange">
        <div class="widget-title">
            <h4>
                <i class="icon-reorder"></i>Thông Tin Lớp Học</h4>
            <span class="tools"><a href="javascript:;" class="icon-chevron-down"></a><a href="javascript:;"
                class="icon-remove"></a></span>
        </div>
        <div class="widget-body">
            <dl class="dl-horizontal">
                <dt>Tên Lớp Học:</dt>
                <dd>
                    <%: Model.LopHocViewModel.TenLopHoc%></dd>
                <dt>Chi Nhánh:</dt>
                <dd>
                    <%: Model.LopHocViewModel.ChiNhanhReference.Value.TenChiNhanh%></dd>
                <dt>Tên Môn Học: </dt>
                <dd>
                    <%: Model.LopHocViewModel.MonHocReference.Value.MoTa%></dd>
                <dt>Giáo Viên Phụ Trách: </dt>
                <dd>
                    <%: Model.PhanCongViewModel.GiaoVienReference.Value.TaiKhoanReference.Value.HoTen%>
                </dd>
                <dt>Ca Học:</dt>
                <dd><%: Model.PhanCongViewModel.CaHoc %></dd>
                <dt>Ngày Khai Giảng:</dt>
                <dd><%: Model.LopHocViewModel.NgayKhaiGiang.Value.ToString("dd/MM/yyyy")%></dd>
                <%--<dt>Ngày Kết Thúc:</dt>
                <dd><%: Model.PhanCongViewModel.CaHocReference.Value.ThoiGianKetThuc.Value.ToString("dd/MM/yyyy")%></dd>--%>
                <dt>Tình Trạng:</dt>
                <dd><%: Model.LopHocViewModel.TinhTrang%></dd>
                <dt>Loại Lớp Học:</dt>
                <dd><%: Model.LopHocViewModel.LoaiLopHocReference.Value.MoTa%></dd>
                <dt>Ngôn Ngữ:</dt>
                <dd><%: Model.LopHocViewModel.NgonNgu%></dd>
            </dl>
        </div>
    </div>   

    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>
                    #
                </th>
                <th style="min-width:100px">
                    Tên học viên
                </th>
                <th>
                    Điện thoại
                </th>
                <th>
                    Địa chỉ
                </th>
                <th>
                    Hành động
                </th>
            </tr>
        </thead>
        <tbody>
            <% 
       if (@Model.HocVienList != null && @Model.HocVienList.ListMoRong.Count() > 0)
                {
                    int i = 1;
                    foreach (VietThuongLMS.ViewModels.HocVien_LopMoRongModel @hocVien in @Model.HocVienList.ListMoRong)
                    {%>
            <tr>
                <td>
                    <%=i%>
                </td>
                <td>
                    <%=@hocVien.HoTen%>
                </td>
                <td>
                    <%=@hocVien.DienThoai%>
                </td>
                <td>
                    <%=@hocVien.DiaChi%>
                </td>
                <td>
                    <%--<%= Html.ActionLink("Chuyển lớp", "ChooseClass", "HocVien", new { area = "Admin", id = @hocVien.HV_L.ID }, new { @class = "btn btn-primary" })%>--%>
                    
                </td>
            </tr>
            <% i++;
                    }%>
            <tr>
                <td colspan="5">
                    <%
                        if ((string)ViewData["pageLinks"] != "")
                        { %>
                    <%= ViewData["pageLinks"] %>
                    <% } %>
                </td>
            </tr>
            <%
                }
                else
                {
            %>
            <tr>
                <td colspan="5" style="text-align: center;">
                    Empty List
                </td>
            </tr>
    <% }
    %>
        </tbody>
    </table>

    <div class="btn btn-primary">
        <a href="<%=ResolveUrl("~/Admin/LopHoc/Index") %>">
        <button class="btn btn-primary">
        <i class="icon-reply"></i>
            Quay lại danh sách
        </button></a>
    </div>
<% }
   else
   { %>
   <div>
   </br>
    <h3>Hiện Không Có Dữ Liệu!</h3>
   </div>
<% } %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>

